﻿using HCQ2_Model.APPModel.ParamModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VLine.InputDto
{
    /// <summary>
    ///  1.7 获取用户答题正确率模型
    /// </summary>
    public class UserAnswerRatio: BaseAPI
    {
        public int user_id { get; set; }
        /// <summary>
        ///  开始日期
        ///  格式：yyyyMMddHHmmss
        /// </summary>
        public string startDate { get; set; }
        /// <summary>
        ///  结束日期
        ///  格式：yyyyMMddHHmmss
        /// </summary>
        public string endDate { get; set; }
        /// <summary>
        ///  返回记录数
        /// </summary>
        public int size { get; set; } = 10;
        /// <summary>
        ///  排序方式
        ///  0：高到低
        ///  1：低到高
        /// </summary>
        public int orderType { get; set; }
    }
    /// <summary>
    ///  1.7 获取用户答题正确率返回模型
    /// </summary>
    public class UserAnswerRatioResult
    {
        /// <summary>
        ///  作品id
        /// </summary>
        public int file_id { get; set; }
        /// <summary>
        ///  作品代码
        /// </summary>
        public string file_code { get; set; }
        /// <summary>
        ///  作品名称
        /// </summary>
        public string file_name{ get; set; }
        /// <summary>
        ///  正确率
        /// </summary>
        public decimal accuracy { get; set; }
        /// <summary>
        ///  答题总数
        /// </summary>
        public int total { get; set; }
        /// <summary>
        ///  正确数
        /// </summary>
        public decimal correct { get; set; }
    }
}